package org.adorsys.aderp.jpa.init;

import org.springframework.context.ApplicationListener;
import org.springframework.context.event.ContextRefreshedEvent;

public class AderpContextRefreshEventListner implements
		ApplicationListener<ContextRefreshedEvent> 
{

	private ApplicationInitService applicationInitService;
	
	@Override
	public void onApplicationEvent(ContextRefreshedEvent event) {
		applicationInitService.initApplication();
	}

	public ApplicationInitService getApplicationInitService() {
		return applicationInitService;
	}

	public void setApplicationInitService(
			ApplicationInitService applicationInitService) {
		this.applicationInitService = applicationInitService;
	}

}
